﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO_QLNS;

namespace ADO_QLNS
{
    public class CommentADO : QLNS_ADO
    {
        CommentDTO _DTO;

        public override string InsertString(TransferObject dto)
        {
            _DTO = (CommentDTO)dto;
            String sql = "INSERT INTO Comment(CustomerID, BookID, Comment) VALUES({0},{1},'{2}')";
            return String.Format(sql, _DTO.CustomerID, _DTO.BookID, _DTO.Comment);
        }

        public override string UpdateString(TransferObject dto)
        {
            throw new NotImplementedException();
        }

        public override string DeleteString(TransferObject dto)
        {
            throw new NotImplementedException();
        }

        protected override object GetDataFromDataRow(System.Data.DataTable dt, int i)
        {
            throw new NotImplementedException();
        }
    }
}
